# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=duperemove
pkgver=0.14.1
pkgrel=1
pkgdesc="Tools for deduping file systems"
url="https://github.com/markfasheh/duperemove"
arch="all"
license="GPL-2.0-only"
makedepends="glib-dev linux-headers sqlite-dev"
options="!check"  # no tests provided
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/markfasheh/duperemove/archive/refs/tags/v$pkgver.tar.gz
	gcc14-32-bit.patch
	"

build() {
	# Defining this 2 variables prevents make from calling git
	make VERSION=$pkgver IS_RELEASE=1
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
16af9fb002d6e51ce469869507d5d4b8f9576620746337252ad733e6f74ae275c1e83da6af1c203543b9d19890180952d87f9fad4a02d4c4e0a25577ce569191  duperemove-0.14.1.tar.gz
2fa3e0389394199eedc50091c4a5132589b343873230b4ee3a7b534ad74e162b36ec3cf1e9116cac5c3cef41e12289f50c1a8beb1a4ce2b27c63905dfbfc573e  gcc14-32-bit.patch
"
